
<% if order.unpaid? %>
  <button class="order-list-btn pay" onclick="window.location.href='/payments/generate_pay?order_no=<%= order.order_no %>'">立即付款</button>
<% elsif order.survey_completed? %>
  <button class="order-list-btn pay" onclick="window.location.href='/payments/generate_pay?order_no=<%= order.order_no %>'">支付尾款</button>
<% end %>
